cmake_minimum_required (VERSION 3.12 FATAL_ERROR)

project ("FlexibleCommandManager" C CXX)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)

# project requires qt5
find_package(Qt5 5.14 COMPONENTS Core Gui Network Widgets REQUIRED)

include_directories(
	${CMAKE_SOURCE_DIR}/vendors
	${CMAKE_SOURCE_DIR}
)

# 包含子项目。
add_subdirectory (Core)
add_subdirectory (Plugins)
add_subdirectory (ScriptEngines)
add_subdirectory (Application)
